package com.superbytecode.cloud.common.exception;

import com.superbytecode.cloud.common.model.IDict;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.common.model
 * @ClassName: ErrorCodeEnum
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/10/21 16:48
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.cn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
public enum ErrorCodeEnum implements IErrorCode, IDict<String> {
    SUCCESS("SUCCESS", "操作成功"),//
    FAILURE("FAILURE", "操作失败"),//
    ERROR("ERROR", "❌系统异常"),//
    ILLEGAL_ARGUMENT("ILLEGAL_ARGUMENT", "无效参数"),//
    INTERFACE_SYSTEM_ERROR("INTERFACE_SYSTEM_ERROR", "外部接口调用异常"),//
    METHOD_NOT_ALLOWED("METHOD_NOT_ALLOWED", "请求方法不允许"),//
    BAD_REQUEST("BAD_REQUEST","错误请求"),//HttpStatus.BAD_REQUEST
    SENTINEL_BLOCKED("BLOCK_EXCEPTION", "接口限流降级"),//
    ;

    // -----------------------------------------------------------------------------------------------------------------
    ErrorCodeEnum(String code, String megs) {
        initDict(code, megs);
    }

    @Override
    public String getCode() {
        return "";
    }

    @Override
    public String getMessage() {
        return "";
    }
}